﻿/********
* 
* 
*  Description:
*  Create By Kain at 4/6/2011 2:48:51 PM
*  
*
*  Revision History:
*  Date                  Who                 What
*  
* 
*/

#region

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

#endregion

namespace Cherry.Agile.ServiceModel.Runtime
{
    [Serializable]
    [DataContract]
    public class ServiceInfo
    {
        [DataMember]
        public string BaseAddress { get; set; }

        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public string FullName { get; set; }

        [DataMember]
        public EndpointInfo[] EndpointsInfo { get; set; }

        [DataMember]
        public RunState State { get; set; }
        
        [DataMember]
        public int PackageId { get; set; }

    }

    [Serializable]
    [DataContract]
    public class ServerInfomation {

        /// <summary>
        /// 名称
        /// </summary>
        [DataMember]
        public string Name { get; set; }

        /// <summary>
        /// 版本
        /// </summary>
        [DataMember]
        public string Version { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [DataMember]
        public RunState State { get; set; }

        /// <summary>
        /// 服务器类型
        /// </summary>
        [DataMember]
        public string Type { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        [DataMember]
        public DateTime StateDate { get; set; }
    }
}
